package com.tangoj.common.utils;



import com.tangoj.common.common.UserVO;


/**
 * threadLocal工具类
 */
public class LoginUtils {
    public static final ThreadLocal<UserVO> threadLocal = new ThreadLocal<>();

    public static UserVO getUser(){
        return threadLocal.get();
    }

    public static void setUser(UserVO userVO){
        threadLocal.set(userVO);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
